; buffer contains a Mail Reply. Each tuple is a MSAMEnumerateInQReply when enumerating the inQueue MSAMEnumerateOutQReply when enumerating the outQueue
buffer ds MailBuffer ; offset: $24 (36)
sizeof EQU * ; size: $30 (48)
ENDR
MSAMEnumerateInQReply RECORD 0
seqNum ds.l 1 ; offset: $0 (0)
msgDeleted ds.b 1 ; offset: $4 (4) ; true if msg is to be deleted by PMSAM
msgUpdated ds.b 1 ; offset: $5 (5) ; true if MsgSummary has been updated by TB
msgCached ds.b 1 ; offset: $6 (6) ; true if msg is in the incoming queue
padByte ds.b 1 ; offset: $7 (7)
sizeof EQU * ; size: $8 (8)
ENDR
MSAMEnumerateOutQReply RECORD 0
seqNum ds.l 1 ; offset: $0 (0)
done ds.b 1 ; offset: $4 (4) ; true if all responsible recipients have been processed
priority ds.b 1 ; offset: $5 (5)
msgFamily ds.l 1 ; offset: $6 (6)
approxSize ds.l 1 ; offset: $A (10)
tunnelForm ds.b 1 ; offset: $E (14) ; true if this letter has to be tunnelled
padByte ds.b 1 ; offset: $F (15)
nextHop ds NetworkSpec ; offset: $10 (16) ; valid if tunnelForm is true
msgType ds OCECreatorType ; offset: $34 (52)
sizeof EQU * ; size: $3C (60)
ENDR
MSAMDeletePB RECORD 0
qLink ds.l 1 ; offset: $0 (0)
reservedH1 ds.l 1 ; offset: $4 (4)
reservedH2 ds.l 1 ; offset: $8 (8)
ioCompletion ds.l 1 ; offset: $C (12)
ioResult ds.w 1 ; offset: $10 (16)
saveA5 ds.l 1 ; offset: $12 (18)
reqCode ds.w 1 ; offset: $16 (22)
queueRef ds.l 1 ; offset: $18 (24)
seqNum ds.l 1 ; offset: $1C (28)
msgOnly ds.b 1 ; offset: $20 (32) ; only valid for PMSAM & inQueue
; set true to delete message but not msgSummary
padByte ds.b 1 ; offset: $21 (33)
; only valid for SMSAM & tunnelled messages
result ds.w 1 ; offset: $22 (34)
sizeof EQU * ; size: $24 (36)
ENDR
MSAMOpenPB RECORD 0
qLink ds.l 1 ; offset: $0 (0)
reservedH1 ds.l 1 ; offset: $4 (4)
reservedH2 ds.l 1 ; offset: $8 (8)
ioCompletion ds.l 1 ; offset: $C (12)
ioResult ds.w 1 ; offset: $10 (16)
saveA5 ds.l 1 ; offset: $12 (18)
reqCode ds.w 1 ; offset: $16 (22)
queueRef ds.l 1 ; offset: $18 (24)
seqNum ds.l 1 ; offset: $1C (28)
mailMsgRef ds.l 1 ; offset: $20 (32)
sizeof EQU * ; size: $24 (36)
ENDR
MSAMOpenNestedPB RECORD 0
qLink ds.l 1 ; offset: $0 (0)
reservedH1 ds.l 1 ; offset: $4 (4)
reservedH2 ds.l 1 ; offset: $8 (8)
ioCompletion ds.l 1 ; offset: $C (12)
ioResult ds.w 1 ; offset: $10 (16)
saveA5 ds.l 1 ; offset: $12 (18)
reqCode ds.w 1 ; offset: $16 (22)
mailMsgRef ds.l 1 ; offset: $18 (24)
nestedRef ds.l 1 ; offset: $1C (28)
sizeof EQU * ; size: $20 (32)
ENDR
MSAMClosePB RECORD 0
qLink ds.l 1 ; offset: $0 (0)
reservedH1 ds.l 1 ; offset: $4 (4)
reservedH2 ds.l 1 ; offset: $8 (8)
ioCompletion ds.l 1 ; offset: $C (12)
ioResult ds.w 1 ; offset: $10 (16)
saveA5 ds.l 1 ; offset: $12 (18)
reqCode ds.w 1 ; offset: $16 (22)
mailMsgRef ds.l 1 ; offset: $18 (24)
sizeof EQU * ; size: $1C (28)
ENDR
MSAMGetMsgHeaderPB RECORD 0
qLink ds.l 1 ; offset: $0 (0)
reservedH1 ds.l 1 ; offset: $4 (4)
reservedH2 ds.l 1 ; offset: $8 (8)
ioCompletion ds.l 1 ; offset: $C (12)
ioResult ds.w 1 ; offset: $10 (16)
saveA5 ds.l 1 ; offset: $12 (18)
reqCode ds.w 1 ; offset: $16 (22)
mailMsgRef ds.l 1 ; offset: $18 (24)
selector ds.b 1 ; offset: $1C (28)
filler1 ds.b 1 ; offset: $1D (29)
offset ds.l 1 ; offset: $1E (30)
buffer ds MailBuffer ; offset: $22 (34)
remaining ds.l 1 ; offset: $2E (46)
sizeof EQU * ; size: $32 (50)
ENDR
;
; MSAMGetAttributesPB.buffer returned will contain the attribute values of
; the attributes indicated in responseMask,
; from the attribute indicated by the least significant bit set
; to the attribute indicated by the most significant bit set.
; Note that recipients - from, to, cc, bcc cannot be read using